gtk4.git
11 years agotestgtk: Fix enabling of the cursor demo
Jasper St. Pierre [Tue, 2 Sep 2014 18:24:34 +0000 (11:24 -0700)]
testgtk: Fix enabling of the cursor demo

Make this a lot less hacky.

11 years agogtkcssshadowvalue: Use cairo_surface_create_similar_image
Jasper St. Pierre [Tue, 2 Sep 2014 18:21:02 +0000 (11:21 -0700)]
gtkcssshadowvalue: Use cairo_surface_create_similar_image

Calling this on an Xlib surface allows us to keep this in SHM memory,
giving it a potential speedup so we don't have to copy it to SHM memory
for the Composite when we mask later.

11 years agogdkcairo: Add a missing flush
Jasper St. Pierre [Tue, 2 Sep 2014 15:29:47 +0000 (08:29 -0700)]
gdkcairo: Add a missing flush

Noticed by ickle on IRC. We need to flush here to make sure that the
image data we fetch is up to date.

11 years agogdkwindow: Fix update area calculations for native subwindows
Alexander Larsson [Tue, 2 Sep 2014 14:22:12 +0000 (16:22 +0200)]
gdkwindow: Fix update area calculations for native subwindows

When recursing the update area down into native subwindows we forgot
to apply the native window position. This caused us to repaint the
wrong thing in certain cases. I noticed this when playing with the
wip/gdk-gl branch, because it was triggering unnecessary repaints
of the (native window) gl widgets.

11 years agotestgtk: Make cursor demo work with wayland
Matthias Clasen [Tue, 2 Sep 2014 13:53:15 +0000 (09:53 -0400)]
testgtk: Make cursor demo work with wayland

We have the wayland apis to do this.

11 years agoinspector: Add .ui.h files to git
Matthias Clasen [Tue, 2 Sep 2014 13:50:08 +0000 (09:50 -0400)]
inspector: Add .ui.h files to git

Tools like damn-lies rely on being able to generate .pot files
from pristine checkouts, so everything that goes into the .pot
file has to be in git. This is not ideal, but we already do
the same for other .ui.h files in GTK+.

11 years agoKeep .ui.h files out of BUILT_SOURCES AND MAINTAINERCLEANFILES
Matthias Clasen [Tue, 2 Sep 2014 13:48:58 +0000 (09:48 -0400)]
Keep .ui.h files out of BUILT_SOURCES AND MAINTAINERCLEANFILES

Otherwise, git.mk will add them to .gitignore, and we want to
add them to source control for the benefit of tools like damn-lies
which rely on being able to generate a .pot file from a pristine
checkout.,

11 years agoAdwaita: make entry and headerbar gradients sass functions
Lapo Calamandrei [Tue, 2 Sep 2014 13:21:42 +0000 (15:21 +0200)]
Adwaita: make entry and headerbar gradients sass functions

11 years agoUpdated Brazilian Portuguese translation
Rafael Ferreira [Tue, 2 Sep 2014 06:24:30 +0000 (06:24 +0000)]
Updated Brazilian Portuguese translation

11 years agoBump version
Matthias Clasen [Tue, 2 Sep 2014 00:52:46 +0000 (20:52 -0400)]
Bump version

11 years ago3.13.8
Matthias Clasen [Mon, 1 Sep 2014 22:05:24 +0000 (18:05 -0400)]
3.13.8

11 years agowayland: Unset window_impl->commit_pending when hiding the surface
Carlos Garnacho [Mon, 1 Sep 2014 18:20:49 +0000 (20:20 +0200)]
wayland: Unset window_impl->commit_pending when hiding the surface

A surface may be hidden when a frame is already scheduled, which may cause
crashes on on_frame_clock_after_paint() when calling commit() on a NULL
surface. To fix this, ensure commit_pending is also set to FALSE when the
surface is gone.

https://bugzilla.gnome.org/show_bug.cgi?id=735226

11 years agoUse secrets service for cups auth_info
Andre Heinecke [Tue, 19 Aug 2014 15:55:47 +0000 (17:55 +0200)]
Use secrets service for cups auth_info

    When a printer requires auth_info (e.g. a printer connected
    over the samba protocol) it is now possible to save the
    credentials necessary for printing if a secrets service
    is available over dbus.
    The auth_info is then stored / loaded from the default
    collection of that secrets service.
    If no such service is available the user is not shown
    the option to remember the password and the behavior
    remains the same as before.

    https://bugzilla.gnome.org/show_bug.cgi?id=674264

11 years agowayland: Store and use the current grab cursor, if any
Carlos Garnacho [Mon, 1 Sep 2014 17:11:02 +0000 (19:11 +0200)]
wayland: Store and use the current grab cursor, if any

Only static cursors are supported in gdk_device_grab() so far. Obey the
cursor that gdk_device_grab() specifies, which may be different to
the pointer window one. As soon as the grab is gone, the pointer window
cursor will be restored as usual.

https://bugzilla.gnome.org/show_bug.cgi?id=735831

11 years agowayland: Keep the last cursor on leave, try to restore it on enter
Carlos Garnacho [Mon, 1 Sep 2014 16:53:00 +0000 (18:53 +0200)]
wayland: Keep the last cursor on leave, try to restore it on enter

On DnD, pointer_handle_leave may be triggered without the pointer actually
leaving the window, and pointer_handle_enter() happening after intra-window
DnD won't actually manage to update the cursor (it does nothing directly,
and to the upper layers the cursor is still the same and consistent, so no
attempt will happen).

To fix this, keep the pointer cursor on leave, and ensure it is updated
on enter. The pointer cursor will be updated to any current new one through
the enter/motion events generated if it needs be.

https://bugzilla.gnome.org/show_bug.cgi?id=735831

11 years agowayland: Reference pixmap-based cursors' surface before handing the wl_buffer
Carlos Garnacho [Mon, 1 Sep 2014 16:44:48 +0000 (18:44 +0200)]
wayland: Reference pixmap-based cursors' surface before handing the wl_buffer

cairo_surface_destroy() is called after the buffer is released, for every
wl_buffer. Windows usually reference their cairo surface before rendering,
so that extra reference is consumed after the buffer is released, so do
the same with cursor surfaces and add an extra reference whenever a cursor
surface change is about to be scheduled.

Otherwise, the GdkWaylandCursor is left with an invalid cairo_surface_t,
which causes crashes the next time it is used.

https://bugzilla.gnome.org/show_bug.cgi?id=735830

11 years agoUpdated POTFILES.in
Piotr Drąg [Mon, 1 Sep 2014 18:06:19 +0000 (20:06 +0200)]
Updated POTFILES.in

11 years agogtkdnd: Hardcode the DnD window onto the drag widget window on Wayland
Carlos Garnacho [Thu, 28 Aug 2014 12:44:44 +0000 (14:44 +0200)]
gtkdnd: Hardcode the DnD window onto the drag widget window on Wayland

This makes the drag widget use the same window surface that was passed
when starting the drag operation.

https://bugzilla.gnome.org/show_bug.cgi?id=697855

11 years agowindow: Add private API to hardcode the main GdkWindow for a GtkWindow
Carlos Garnacho [Thu, 28 Aug 2014 12:40:42 +0000 (14:40 +0200)]
window: Add private API to hardcode the main GdkWindow for a GtkWindow

This must be called while the window is not realized yet, and sets the
GdkWindow that will be used for the next GtkWindow's realize/unrealize
cycle. The GtkWindow takes ownership on the GdkWindow, and as such it
will be destroyed when the widget is unrealized.

https://bugzilla.gnome.org/show_bug.cgi?id=697855

11 years agowayland: Add private API to retrieve the drag window for a drag context
Carlos Garnacho [Thu, 28 Aug 2014 12:12:51 +0000 (14:12 +0200)]
wayland: Add private API to retrieve the drag window for a drag context

On wayland the DnD surface must be created early when starting the drag
operation, so offer API for GTK+ to get the GdkWindow used as a DnD
surface on the drag operation.

https://bugzilla.gnome.org/show_bug.cgi?id=697855

11 years agowayland: Return properly type hints from GdkWindows
Carlos Garnacho [Thu, 28 Aug 2014 12:10:00 +0000 (14:10 +0200)]
wayland: Return properly type hints from GdkWindows

This was hardcoded to GDK_WINDOW_TYPE_HINT_NORMAL, even though wayland
windows store the type hint themselves.

https://bugzilla.gnome.org/show_bug.cgi?id=697855

11 years agowayland: Don't set an xdg surface to DnD windows
Carlos Garnacho [Fri, 22 Aug 2014 14:33:47 +0000 (16:33 +0200)]
wayland: Don't set an xdg surface to DnD windows

https://bugzilla.gnome.org/show_bug.cgi?id=697855

11 years agowayland: Implement drag sources
Carlos Garnacho [Thu, 21 Aug 2014 19:30:22 +0000 (21:30 +0200)]
wayland: Implement drag sources

The wl_data_source is retrieved from the selection object for the DnD
selection, and used to initiate a drag. When the drag is finished, a
button release or touch end event is synthesized to finish the DnD
operation after the compositor grab is gone.

https://bugzilla.gnome.org/show_bug.cgi?id=697855

11 years agowayland: Implement the dropping part of DnD
Carlos Garnacho [Thu, 21 Aug 2014 18:20:37 +0000 (20:20 +0200)]
wayland: Implement the dropping part of DnD

All destination-side events are emitted, and updates to the drop context
are notified through the currently handled wl_data_offer.

https://bugzilla.gnome.org/show_bug.cgi?id=697855

11 years agowayland: Replace clipboard implementation
Carlos Garnacho [Thu, 21 Aug 2014 17:41:48 +0000 (19:41 +0200)]
wayland: Replace clipboard implementation

The wayland specific clipboard functions have been replaced by something
more similar to the hooking the win32 backend does, which allows for just
using the default GtkClipboard code in GTK+. As a consequence, the
wayland-specific GtkClipboard implementation is now gone.

https://bugzilla.gnome.org/show_bug.cgi?id=697855

11 years agowayland: Implement drag/source side of selections
Carlos Garnacho [Thu, 21 Aug 2014 16:49:44 +0000 (18:49 +0200)]
wayland: Implement drag/source side of selections

This has been made to work similarly to X11, requests for the data device
contents are notified through GDK_SELECTION_REQUEST events, the data stored
in the GDK_SELECTION property as a reaction to that event is then stored
into the wayland selection implementation, and written to the fd when
requested/available.

https://bugzilla.gnome.org/show_bug.cgi?id=697855

11 years agowayland: Implement drop/destination side of selections
Carlos Garnacho [Thu, 21 Aug 2014 16:34:01 +0000 (18:34 +0200)]
wayland: Implement drop/destination side of selections

This implementation makes the destination side of selections work
similarly to X11's, gdk_selection_convert() triggers data fetching,
which is notified through GDK_SELECTION_NOTIFY events on arrival,
the buffered data is then available through gdk_selection_property_get().

https://bugzilla.gnome.org/show_bug.cgi?id=697855

11 years agowayland: implement text_property_to_utf8_list()
Carlos Garnacho [Thu, 21 Aug 2014 17:50:21 +0000 (19:50 +0200)]
wayland: implement text_property_to_utf8_list()

Of some sort, this is enough to get text transfers on wayland, anything but
utf8 as plain/text should be pretty rare.

https://bugzilla.gnome.org/show_bug.cgi?id=697855

11 years agogtkselection: Ensure the X11 specific message length only applies to X11
Carlos Garnacho [Wed, 20 Aug 2014 19:35:02 +0000 (21:35 +0200)]
gtkselection: Ensure the X11 specific message length only applies to X11

Other backends are compilable together with the X11 one, so the message
lenght limit was applying to them all.

https://bugzilla.gnome.org/show_bug.cgi?id=697855

11 years agogdk: Remove check for source window
Carlos Garnacho [Wed, 20 Aug 2014 19:31:15 +0000 (21:31 +0200)]
gdk: Remove check for source window

This is backend dependent, on wayland there is no such source window,
not even on local DnD situations.

https://bugzilla.gnome.org/show_bug.cgi?id=697855

11 years agogdk: Add GDK_DRAG_PROTO_WAYLAND
Carlos Garnacho [Wed, 20 Aug 2014 19:03:38 +0000 (21:03 +0200)]
gdk: Add GDK_DRAG_PROTO_WAYLAND

To be used on the wayland windowing backend as the DnD protocol.

https://bugzilla.gnome.org/show_bug.cgi?id=697855

11 years agoAdwaita: make links on selected bg visible...
Lapo Calamandrei [Mon, 1 Sep 2014 17:10:50 +0000 (19:10 +0200)]
Adwaita: make links on selected bg visible...

11 years agoAdwaita: GtkFlowBox selected child styling
Lapo Calamandrei [Mon, 1 Sep 2014 15:42:46 +0000 (17:42 +0200)]
Adwaita: GtkFlowBox selected child styling

11 years agoinspector: Prevent looping when picking widgets
Matthias Clasen [Sat, 30 Aug 2014 14:33:28 +0000 (10:33 -0400)]
inspector: Prevent looping when picking widgets

What was happening that the button press event that we use
to select a widget caused another clicked signal emission of
the inspect button, starting another pick action.

11 years agoAdwaita: move the header-bar fill in a mixin.
Lapo Calamandrei [Mon, 1 Sep 2014 15:31:36 +0000 (17:31 +0200)]
Adwaita: move the header-bar fill in a mixin.

11 years agol10n: Update Japanese translation
Jiro Matsuzawa [Mon, 1 Sep 2014 14:29:05 +0000 (23:29 +0900)]
l10n: Update Japanese translation

11 years agoAdwaita: set padding to 0 for tab buttons
Lapo Calamandrei [Mon, 1 Sep 2014 14:27:34 +0000 (16:27 +0200)]
Adwaita: set padding to 0 for tab buttons

11 years agoGTK MSVC Projects: Fix Include Directories
Chun-wei Fan [Mon, 1 Sep 2014 05:14:11 +0000 (13:14 +0800)]
GTK MSVC Projects: Fix Include Directories

Somehow the project files looked for includes in gdk/ before gtk/, which
is wrong.  Fix that.

11 years agogtkcairoblur: Relicense under LGPL
Jasper St. Pierre [Mon, 1 Sep 2014 02:46:15 +0000 (19:46 -0700)]
gtkcairoblur: Relicense under LGPL

Both Owen Taylor and I, the originators of this code, allow the code
herein be relicensed to the LGPL, which is what GTK+ ships with. This
prevents GTK+ from being GPL-only.

11 years agocssshadowvalue: Fix whitespace
Jasper St. Pierre [Fri, 29 Aug 2014 19:54:01 +0000 (12:54 -0700)]
cssshadowvalue: Fix whitespace

11 years agoUpdated Greek translation
Maria Mavridou [Sat, 30 Aug 2014 21:55:24 +0000 (21:55 +0000)]
Updated Greek translation

11 years agoAdwaita: special case checks/radios on selected bg
Lapo Calamandrei [Sat, 30 Aug 2014 12:27:10 +0000 (14:27 +0200)]
Adwaita: special case checks/radios on selected bg

Add yet another set of checks and radios assets used in selected
treeview cells and selected list-rows, the standard dark variant assets
work well in those cases so no need for special casing there.

11 years agoGtkTreeView: Don't hardcode black for tree lines
Matthias Clasen [Sat, 30 Aug 2014 06:12:41 +0000 (02:12 -0400)]
GtkTreeView: Don't hardcode black for tree lines

Use the left border color for tree lines. This is similar to
our use of top border color for grid lines. As a side-effect,
tree lines now get recolored when they are in a selected row.

https://bugzilla.gnome.org/show_bug.cgi?id=415415

11 years agoGtkTreeModelFilter: Documentation improvement
Matthias Clasen [Sat, 30 Aug 2014 05:59:05 +0000 (01:59 -0400)]
GtkTreeModelFilter: Documentation improvement

Clarify in the docs that some functions can only be called
once for a given filter model.

https://bugzilla.gnome.org/show_bug.cgi?id=346886

11 years agoAdd a testcase for counting selection in treeviews
Matthias Clasen [Sat, 30 Aug 2014 05:44:20 +0000 (01:44 -0400)]
Add a testcase for counting selection in treeviews

https://bugzilla.gnome.org/show_bug.cgi?id=702957

11 years agotreeview tests: Clean up after each test
Matthias Clasen [Sat, 30 Aug 2014 05:46:06 +0000 (01:46 -0400)]
treeview tests: Clean up after each test

It is not good form to leak in testcases.

11 years agotreeview tests: Add bug references
Matthias Clasen [Sat, 30 Aug 2014 05:34:10 +0000 (01:34 -0400)]
treeview tests: Add bug references

11 years agoDon't return from a void function
Matthias Clasen [Sat, 30 Aug 2014 04:53:35 +0000 (00:53 -0400)]
Don't return from a void function

And don't return the value of void functions, either.

11 years agoTrivial formatting fix
Matthias Clasen [Sat, 30 Aug 2014 04:53:21 +0000 (00:53 -0400)]
Trivial formatting fix

11 years agoUpdated POTFILES.in
Piotr Drąg [Sat, 30 Aug 2014 00:43:13 +0000 (02:43 +0200)]
Updated POTFILES.in

11 years agoMove gtkthemingengine to deprecated directory
Matthias Clasen [Fri, 29 Aug 2014 20:33:37 +0000 (16:33 -0400)]
Move gtkthemingengine to deprecated directory

This is the place for wholly-deprecated sources.

11 years agoGtkAboutDialog: Add formatting examples to the docs
Matthias Clasen [Fri, 29 Aug 2014 19:11:11 +0000 (15:11 -0400)]
GtkAboutDialog: Add formatting examples to the docs

We were not very explicit about the expected format for links
and email addresses in the strings, so give some explicit examples.

11 years agoAdwaita: no edge hilight for checks and radios in list-rows
Lapo Calamandrei [Fri, 29 Aug 2014 17:47:38 +0000 (19:47 +0200)]
Adwaita: no edge hilight for checks and radios in list-rows

11 years agoBump wayland dep to 1.5.91
Matthias Clasen [Fri, 29 Aug 2014 15:35:21 +0000 (11:35 -0400)]
Bump wayland dep to 1.5.91

This release has the new key repeat listener that we are using.

11 years agoAdwaita: titlebutton are flat image-buttons
Lapo Calamandrei [Fri, 29 Aug 2014 14:52:21 +0000 (16:52 +0200)]
Adwaita: titlebutton are flat image-buttons

Hence treat them like those, a bunch of special case styling
removed, which also doesn't override selection mode buttons
styling.

11 years agoAdwaita: style GtkLabel.separator
Lapo Calamandrei [Fri, 29 Aug 2014 13:32:45 +0000 (15:32 +0200)]
Adwaita: style GtkLabel.separator

Fixes gnome-document search popup titles.

11 years agoAdwaita: avoid text in buttons being overridden by GtkLabel style
Lapo Calamandrei [Fri, 29 Aug 2014 12:49:54 +0000 (14:49 +0200)]
Adwaita: avoid text in buttons being overridden by GtkLabel style

11 years agoGtkAboutDialog: Support https in links
Matthias Clasen [Fri, 29 Aug 2014 04:51:39 +0000 (00:51 -0400)]
GtkAboutDialog: Support https in links

https://bugzilla.gnome.org/show_bug.cgi?id=680067

11 years agoAdwaita: pathbar whitespace
Jakub Steiner [Fri, 29 Aug 2014 00:41:33 +0000 (02:41 +0200)]
Adwaita: pathbar whitespace

- optically center icons + labels vertically. It isn't actually
  centered, but feels more balanced
- add some left/right padding

https://bugzilla.gnome.org/show_bug.cgi?id=734753

11 years agoAdd a release note about X without render
Matthias Clasen [Fri, 29 Aug 2014 03:01:18 +0000 (23:01 -0400)]
Add a release note about X without render

This reflects the findings in
https://bugzilla.gnome.org/show_bug.cgi?id=735294

11 years agoGtkHeaderBar: Update separator visibility when needed
Matthias Clasen [Fri, 29 Aug 2014 02:54:18 +0000 (22:54 -0400)]
GtkHeaderBar: Update separator visibility when needed

We need to be a little more forthcoming with showing and hiding
the separators - their visibility now depends on the the visibility
and pack type of the regular headerbar children. This was observed
in gnome-contacts, where headerbar buttons are shown and hidden.

11 years agoGtkDialog: Keep special-casing help buttons
Matthias Clasen [Fri, 29 Aug 2014 00:58:27 +0000 (20:58 -0400)]
GtkDialog: Keep special-casing help buttons

We used to move help buttons to the secondary position regardless
how they were added to the action area. Keep doing that, to avoid
breaking existing dialogs that rely on this behavior.

https://bugzilla.gnome.org/show_bug.cgi?id=735119

11 years agoAdwaita: bring the separator back for dialog buttons
Jakub Steiner [Fri, 29 Aug 2014 00:14:16 +0000 (02:14 +0200)]
Adwaita: bring the separator back for dialog buttons

- separators got nuked during lapo's border cleanup

11 years agomenubutton: dismiss menu/popover when toggling programmatically
Paolo Borelli [Wed, 27 Aug 2014 19:36:08 +0000 (21:36 +0200)]
menubutton: dismiss menu/popover when toggling programmatically

https://bugzilla.gnome.org/show_bug.cgi?id=735545

11 years agoAdwaita: dim menu checks/radios a bit
Lapo Calamandrei [Thu, 28 Aug 2014 18:33:37 +0000 (20:33 +0200)]
Adwaita: dim menu checks/radios a bit

11 years agoquartz: Get default font size from user font
Jesse van den Kieboom [Sun, 24 Aug 2014 12:08:57 +0000 (14:08 +0200)]
quartz: Get default font size from user font

https://bugzilla.gnome.org/show_bug.cgi?id=735321

11 years agoAdwaita: nicer transition for flat buttons.
Lapo Calamandrei [Thu, 28 Aug 2014 16:38:46 +0000 (18:38 +0200)]
Adwaita: nicer transition for flat buttons.

11 years agoUpdated Hebrew properties translation
Yosef Or Boczko [Thu, 28 Aug 2014 14:57:51 +0000 (17:57 +0300)]
Updated Hebrew properties translation

11 years agoscrolledwindow: Be smarter at invalidating overshoot areas
Carlos Garnacho [Sun, 27 Jul 2014 11:39:51 +0000 (13:39 +0200)]
scrolledwindow: Be smarter at invalidating overshoot areas

The previous way to invalidate was meant to work on the overshoot window
so it wouldn't be as taxing. Since the overshoot window is gone, this
would invalidate way more than intended. So constrain invalidated areas
to the sides where overshoot is happenning at that moment.

https://bugzilla.gnome.org/show_bug.cgi?id=735223

11 years agotooltip: Use subsurfaces on wayland
Carlos Garnacho [Fri, 22 Aug 2014 11:13:50 +0000 (13:13 +0200)]
tooltip: Use subsurfaces on wayland

This places tooltips in the right place, and avoids having those attempt
to steal the focus.

https://bugzilla.gnome.org/show_bug.cgi?id=735531

11 years agoAdwaita: border rationalization and cleanup
Lapo Calamandrei [Thu, 28 Aug 2014 13:42:17 +0000 (15:42 +0200)]
Adwaita: border rationalization and cleanup

Rely only on border-style for border, take out border-width and
border-style from drawing functions.

11 years agocss: Implement font-stretch
Emmanuele Bassi [Thu, 28 Aug 2014 11:50:49 +0000 (12:50 +0100)]
css: Implement font-stretch

The font-stretch CSS property is defined in the Level 3 CSS Fonts
module, available at:

  http://dev.w3.org/csswg/css-fonts/#propdef-font-stretch

It allows defining a normal, condensed, or expanded face to the font
description. Pango already supports it, so this is literally just the
CSS parser machinery needed to bridge our CSS to the FontDescription
API.

https://bugzilla.gnome.org/show_bug.cgi?id=735593

11 years agoAdwaita: take named colors out of _colors.scss
Lapo Calamandrei [Thu, 28 Aug 2014 11:21:14 +0000 (13:21 +0200)]
Adwaita: take named colors out of _colors.scss

To be able to use sass for shipped css, importing _colors.scss
and _drawings.scss.

11 years agoAdwaita: rationalize font sizes.
Lapo Calamandrei [Thu, 28 Aug 2014 10:48:32 +0000 (12:48 +0200)]
Adwaita: rationalize font sizes.

...making GtkSwitch font-size relative in the process.

11 years agotheme: Specify the weight, not the font, for header bar titles
Emmanuele Bassi [Thu, 28 Aug 2014 10:17:10 +0000 (11:17 +0100)]
theme: Specify the weight, not the font, for header bar titles

Using `font: Bold` will override the font with whatever the system
resolves a `Bold` font name to, including the font's own default size.

We want the font weight to be bold, but we want the default font name
and size to come from the GtkSettings:font-name property, like we do for
the rest of the system.

11 years agoAdwaita: Make expanders turn again
Matthias Clasen [Thu, 28 Aug 2014 02:17:29 +0000 (22:17 -0400)]
Adwaita: Make expanders turn again

The theme needed some small adjustments for the recent expander
state changes ACTIVE to CHECKED.

11 years agoUse CHECKED instead of ACTIVE for expanded expanders
Benjamin Otte [Wed, 27 Aug 2014 19:25:53 +0000 (21:25 +0200)]
Use CHECKED instead of ACTIVE for expanded expanders

https://bugzilla.gnome.org/show_bug.cgi?id=733967

11 years agoconfigure: Move AC_USE_SYSTEM_EXTENSIONS up
Benjamin Otte [Wed, 27 Aug 2014 19:24:27 +0000 (21:24 +0200)]
configure: Move AC_USE_SYSTEM_EXTENSIONS up

We don't want to get warnings from autoconf about
AC_USE_SYSTEM_EXTENSIONS coming after AC_COMPILE_IFELSE.

11 years agoquartz-dnd: make sure to set source window
Jesse van den Kieboom [Wed, 27 Aug 2014 12:08:49 +0000 (14:08 +0200)]
quartz-dnd: make sure to set source window

https://bugzilla.gnome.org/show_bug.cgi?id=658722

11 years agoAdwaita: no edge hilight for popover checks/radios
Lapo Calamandrei [Wed, 27 Aug 2014 16:29:32 +0000 (18:29 +0200)]
Adwaita: no edge hilight for popover checks/radios

11 years agoreftests: Fix Makefile
Benjamin Otte [Wed, 27 Aug 2014 15:51:09 +0000 (17:51 +0200)]
reftests: Fix Makefile

with non-installed tests the build would get an empty $(reftestdir)
which would screw up the LDFLAGS.

An rpath seems to be required to make libtool build a shared object.
Without an rpath line, it only builds a static object.

https://bugzilla.gnome.org/show_bug.cgi?id=735401

11 years agogtk-demo: Don't use mad mime type guessing
Benjamin Otte [Tue, 26 Aug 2014 02:18:52 +0000 (04:18 +0200)]
gtk-demo: Don't use mad mime type guessing

... for displaying resources. Instead use the proven and way more
reliable method of trial and error.

It's less code and more portable for a start.
But most of all it displays PNM files as text if you fail to compile
the gdk-pixbuf loader for it.

11 years agomodifierstyle: Remove the changed signal
Benjamin Otte [Mon, 25 Aug 2014 14:35:11 +0000 (16:35 +0200)]
modifierstyle: Remove the changed signal

It's been unused since last commit

11 years agowidget: Don't connect to GtkModifierStyle::changed
Benjamin Otte [Mon, 25 Aug 2014 14:33:33 +0000 (16:33 +0200)]
widget: Don't connect to GtkModifierStyle::changed

Changes to the modifier style will be picked up by the
GtkStyleProviderPrivate::changed signal. And that signal will actually
invalidate properly.

11 years agowayland: Ensure the parent is committed after repositioning subsurfaces
Carlos Garnacho [Wed, 27 Aug 2014 10:03:28 +0000 (12:03 +0200)]
wayland: Ensure the parent is committed after repositioning subsurfaces

Subsurface position is deemed part of the state of the parent surface, so
ensure wl_surface_commit() happens on the parent surface if none is
scheduled, so the repositioning takes place.

11 years agotreeview: Reset multipress controller after 2nd click
Carlos Garnacho [Wed, 27 Aug 2014 12:36:53 +0000 (14:36 +0200)]
treeview: Reset multipress controller after 2nd click

The pre-gestures code used to compare the current button press with the
previous one on !activate_on_single_click, and unset the previous event
data so ::row-activated would be emitted every 2 clicks.

So do the same with the multipress gesture and reset it after every 2nd
click to have ::row-activated emitted multiple times while manic clicking.

https://bugzilla.gnome.org/show_bug.cgi?id=735353

11 years agothreads: Do not release the GDK lock if it hasn't been acquired yet
Emmanuele Bassi [Tue, 26 Aug 2014 11:15:06 +0000 (12:15 +0100)]
threads: Do not release the GDK lock if it hasn't been acquired yet

Since GLib ≥ 2.41, attempting to release an unlocked mutex will abort(),
as it happens on most systems already.

Given the lack of proper documentation on how to use GDK with threads,
there is code in the wild that does:

    gdk_threads_init ();
    gdk_init ();

    ...

    gtk_main ();

instead of the idiomatically correct:

    gdk_threads_init ();
    gdk_threads_enter ();

    gtk_init ();

    ...

    gtk_main ();

    ...

    gdk_threads_leave ();

Which means that gtk_main() will try to release the GDK lock, and thus
trigger an error from GLib.

we cannot really fix all the wrong code everywhere, and since it does
not cost us anything, we can work around the issue inside GDK itself, by
trying to acquire the GDK lock inside gdk_threads_leave() with
trylock().

https://bugzilla.gnome.org/show_bug.cgi?id=735428

11 years agobuild: make reftests work without installed tests
Benjamin Otte [Mon, 25 Aug 2014 18:39:10 +0000 (20:39 +0200)]
build: make reftests work without installed tests

The libreftest.so module needs to be built in all cases.
Without installed tests, it needs to not be installed though.

https://bugzilla.gnome.org/show_bug.cgi?id=735401

11 years agoCleanup invalid comments (duplication of words)
Ikey Doherty [Sun, 24 Aug 2014 00:26:36 +0000 (01:26 +0100)]
Cleanup invalid comments (duplication of words)

https://bugzilla.gnome.org/show_bug.cgi?id=735301

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
11 years agobutton: Track gesture point to maintain priv->in_button
Carlos Garnacho [Wed, 20 Aug 2014 18:12:35 +0000 (20:12 +0200)]
button: Track gesture point to maintain priv->in_button

This makes the active state work invariably with both mouse/touch, and
regardless of X11 pointer emulation being friendly and sending crossing
events for the emulated pointer events in the latter.

This makes GtkButtons' active state look correct when pressing on
touchscreens on wayland.

https://bugzilla.gnome.org/show_bug.cgi?id=731380

11 years agoentrycompletion: Mark popup window as subsurface on wayland
Carlos Garnacho [Thu, 21 Aug 2014 15:36:45 +0000 (17:36 +0200)]
entrycompletion: Mark popup window as subsurface on wayland

This will make the completion window use GDK_WINDOW_SUBSURFACE and be
shown relative to the parent window without involving compositor grabs.

https://bugzilla.gnome.org/show_bug.cgi?id=695504

11 years agogtkwindow: Add private API to mark as subsurface
Carlos Garnacho [Thu, 21 Aug 2014 15:34:09 +0000 (17:34 +0200)]
gtkwindow: Add private API to mark as subsurface

This is a rather hackish way to let GTK+ widgets declare popup windows
as subsurfaces, so they may work on wayland without the need of xdg_popup,
and without many changes yet on the GTK+ side.

https://bugzilla.gnome.org/show_bug.cgi?id=695504

11 years agoAdwaita: menu checks and radios making sense
Lapo Calamandrei [Tue, 26 Aug 2014 18:32:36 +0000 (20:32 +0200)]
Adwaita: menu checks and radios making sense

11 years agoAdwaita: set a background for GtkTextView
Lapo Calamandrei [Tue, 26 Aug 2014 17:54:41 +0000 (19:54 +0200)]
Adwaita: set a background for GtkTextView

Needed for gedit line numbers, overridden by .view {} normally

11 years agoAdwaita: minor fixes to GtkLabel
Lapo Calamandrei [Tue, 26 Aug 2014 17:24:44 +0000 (19:24 +0200)]
Adwaita: minor fixes to GtkLabel

11 years agoAdwaita: take rtl into consideration for GtkAssistant
Lapo Calamandrei [Tue, 26 Aug 2014 16:02:28 +0000 (18:02 +0200)]
Adwaita: take rtl into consideration for GtkAssistant

11 years agoAdwaita: GtkAssistant tweakings
Lapo Calamandrei [Tue, 26 Aug 2014 15:51:45 +0000 (17:51 +0200)]
Adwaita: GtkAssistant tweakings

11 years agoAdwaita: treeview checks/radios minor fix
Lapo Calamandrei [Tue, 26 Aug 2014 14:56:22 +0000 (16:56 +0200)]
Adwaita: treeview checks/radios minor fix

Superfluous icon shadow in checked hover state removed.

11 years agoAdwaita: in app notification fixes
Lapo Calamandrei [Tue, 26 Aug 2014 14:54:19 +0000 (16:54 +0200)]
Adwaita: in app notification fixes

11 years agoscalebutton: Handle smooth scroll events
Carlos Garnacho [Fri, 22 Aug 2014 17:15:57 +0000 (19:15 +0200)]
scalebutton: Handle smooth scroll events

This has the double effect to make scale button truly smooth, and make
scrolling work on wayland, since all scrolling is "smooth" there.

https://bugzilla.gnome.org/show_bug.cgi?id=720269